package com.longge;

public class GetNoZeroIntegers {

    public int[] getNoZeroIntegers(int n) {

        for (int i = 1; i < n; i++) {
            int other = n - i;
            int res1 = String.valueOf(i).indexOf("0");
            if (res1 == -1) {
                int res2 = String.valueOf(other).indexOf("0");
                if (res2 == -1) {
                    return new int[]{i, other};
                }
            }
        }
        return new int[0];
    }

}
